﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace NetLogger
{
	/// <summary>
	/// Interaction logic for ConfirmDeactivation.xaml
	/// </summary>
	public partial class ConfirmDeactivation : Window
	{
		private List<NetMember> _members;

		public ConfirmDeactivation( IEnumerable<NetMember> members )
		{
			_members = new List<NetMember>();
			_members.AddRange( members );

			DataContext = this;

			InitializeComponent();
		}

		public IEnumerable<NetMember> Members
		{
			get
			{
				return _members;
			}
		}

		public bool HasUnsecuredStations
		{
			get
			{
				return _members.Count > 0;
			}
		}

		private void OnYes( object sender, RoutedEventArgs e )
		{
			DialogResult = true;
			Close();
		}
	}
}
